var contr=angular.module('contr',[]);
contr.controller('begC',['$scope','$http',function($scope,$http){

	$scope.mode={num1:'',num2:'',num3:''};
	$scope.isok1=false;
	$scope.isok2=false;

	$scope.chang1=function(){
		if($scope.mode.num1){
			$scope.isok1=true;
		}else{
			$scope.isok1=false
		}
		$scope.anl();
	}
	$scope.chang2=function(){
		if($scope.mode.num2){
			$scope.isok2=true;
		}else{
			$scope.isok2=false
		}
		$scope.anl();
	}
	$scope.chang3=function(){
		if($scope.mode.num3){
			$scope.isok3=true;
		}else{
			$scope.isok3=false;
		}
		
	}
	$scope.anl=function(){
		if($scope.isok1&&$scope.isok2){
				$scope.isChecked=false;
			}else{
				$scope.isChecked=true;
			}
	}
	$scope.ist=false;
		$scope.yan='获取短信验证码';
	$scope.huo=function(){
		if($scope.ist){
			return;
		}$scope.ist=true;
		$scope.Time=120;
		$scope.tine=setInterval(function(){
				$scope.Time--;
				if($scope.Time==0){
					clearInterval($scope.tine);
					$scope.yan='获取短信验证码';
				
					return;
				}
			
				$scope.yan='重新发送'+$scope.Time+'(s)';

			},1000);


	}

}])


contr.controller('shopCtrl',['$scope','$ionicModal',function($scope,$ionicModal){//首页

	 $ionicModal.fromTemplateUrl('secModal.html', {
	    scope: $scope,
	    animation: 'none'
	  }).then(function(modal) {
	    $scope.modal = modal;
	  });
	    $scope.openModal = function() {
	    $scope.modal.show();
	  };

}])
contr.controller('classifyCtrl',['$scope','$ionicModal',function($scope,$ionicModal){//分类
	$scope.Lists=[
					{'list':'推荐分类'},
					{'list':'潮流女装'},
					{'list':'品牌男装'},
					{'list':'个护化妆'},
					{'list':'家用电器'},
					{'list':'电脑办公'},
					{'list':'手机数码'},
					{'list':'母婴童装'},
					{'list':'图书音像'},
					{'list':'家居家纺'},
					{'list':'厨房用具'},
					{'list':'家具建材'},
					{'list':'今日推荐'}

	];
	
 $ionicModal.fromTemplateUrl('secModal.html', {
	    scope: $scope,
	    animation: 'none'
	  }).then(function(modal) {
	    $scope.modal = modal;
	  });
	    $scope.openModal = function() {
	    $scope.modal.show();
	  };




	
}])
contr.controller('classify1Ctrl',['$scope','$ionicModal','$ionicSideMenuDelegate',function($scope,$ionicModal,$ionicSideMenuDelegate){//分类1
	 $ionicModal.fromTemplateUrl('secModal.html', {
	    scope: $scope,
	    animation: 'none'
	  }).then(function(modal) {
	    $scope.modal = modal;
	  });
	    $scope.openModal = function() {
	    $scope.modal.show();
	   };
	  	$scope.go=function(){
		 location.href = '#/tab/shop';
	}

 

}])

contr.controller('settCtrl',['$scope',function($scope){//购物车
	
}])

contr.controller('chaCtrl',['$scope',function($scope){//购物车
	
}])
contr.controller('mineCtrl',['$scope',function($scope){//个人中心
	
}])
contr.controller('discenCtrl',['$scope',function($scope){//分销中心
	
}])
contr.controller('withdrawalCtrl',['$scope',function($scope){//提现明细
	
}])
contr.controller('shareCtrl',['$scope',function($scope){//推广二维码
	
}])
contr.controller('offlineCtrl',['$scope',function($scope){//我的下线
	
}])
contr.controller('cosubCtrl',['$scope',function($scope){//佣金明细
	
}])
contr.controller('topUpCtrl',['$scope',function($scope){//充值

	$scope.num=[    {'list':''},
					{'list':''},
					{'list':''},
					{'list':''},
					{'list':''},
					{'list':''}

			];
	
}])
contr.controller('coupntCtrl',['$scope',function($scope){//优惠券
	
}])
contr.controller('istrCtrl',['$scope',function($scope){//分销佣金
	
}])

contr.controller('orderCtrl',['$scope',function($scope){//我的订单的待付款
	
}])
contr.controller('entireCtrl',['$scope',function($scope){//我的订单的全部
	
}])
contr.controller('takeCtrl',['$scope',function($scope){//我的订单的待收货
	
}])
contr.controller('evalationCtrl',['$scope',function($scope){//我的订单的待评价
	
}])
contr.controller('real-nameCtrl',['$scope',function($scope){//实名认证
	
}])
contr.controller('quickCtrl',['$scope',function($scope){//立即评价
	
}])
contr.controller('quickCtrl',['$scope',function($scope){//我的收藏
	
}])
contr.controller('historyCtrl',['$scope',function($scope){//浏览记录
	
}])
contr.controller('secuCtrl',['$scope',function($scope){//账户与安全
	
}])
contr.controller('amendCtrl',['$scope',function($scope){//修改登录密码
	
}])
contr.controller('amend-telCtrl',['$scope',function($scope){//修改手机号码
	
}])
contr.controller('tradeCtrl',['$scope',function($scope){//换绑手机号
	
}])
contr.controller('mallCtrl',['$scope',function($scope){//积分商城
	
}])

// 设置页
contr.controller('setCtrl',['$scope',function($scope){//设置
	
}])
contr.controller('pushCtrl',['$scope',function($scope){//推送
	
}])
contr.controller('aboutCtrl',['$scope',function($scope){//关于未来购
	
}])

// 关于未来购


contr.controller('helpCtrl',['$scope',function($scope){//使用帮助
	
}])

contr.controller('statmentCtrl',['$scope',function($scope){//特别声明
	
}])



// 消息中心

contr.controller('messageCtrl',['$scope',function($scope){//消息中心
	
}])
contr.controller('messCtrl',['$scope',function($scope){//通知中心
	
}])

contr.controller('logisCtrl',['$scope',function($scope){//通知中心
	
}])


// 个人资料

contr.controller('datumCtrl',['$scope',function($scope){//通知中心
	
}])
contr.controller('photoallCtrl',['$scope',function($scope){//最近照片
	
}])
contr.controller('nicknameCtrl',['$scope',function($scope){//修改昵称
	
}])

// 地址管理

contr.controller('addressCtrl',['$scope',function($scope){//地址管理
	
}])
contr.controller('addNewCtrl',['$scope',function($scope){//添加新地址

}])
contr.controller('areaCtrl',['$scope',function($scope){//选择地址	
}])

contr.controller('streetCtrl',['$scope',function($scope){//选择街道
}])


contr.controller('collecCtrl',['$scope','$state',function($scope,$state){//秒杀

	$scope.go=function(){
		 location.href = '#/seckDeta/'+1;
	}
	
}])
contr.controller('seckDetaCtrl',['$scope',function($scope){//商品详情
	$scope.ify=false;
	$scope.pros=true;
	$scope.ping=false;
	$scope.sh=false;
	$scope.ifys=function(){
		$scope.ify=true;
		$scope.ping=false;
		$scope.pros=false;

	}
	$scope.pro=function(){
		$scope.ify=false;
		$scope.ping=false;
		$scope.pros=true;

	}
	$scope.ping=false;
	$scope.pings=function(){
		$scope.ping=true;
		$scope.ify=false;
		$scope.pros=false;

	}
	$scope.show=function(){
		$scope.sh=true;
	}
	
}])

contr.controller('cardCtrl',['$scope',function($scope){//申请提现
}])
contr.controller('cosecradCtrl',['$scope',function($scope){//选择银行卡
}])
contr.controller('cardholderCtrl',['$scope',function($scope){//添加银行卡
}])
contr.controller('recordCtrl',['$scope',function($scope){//提现记录

	
}])